<template>
<div class="con">
    <div class="header">
        <van-nav-bar title="2019东方购物线下聚会" left-text="返回"  right-text="分享" left-arrow class="spec" @click-right='share()' @click-left='tab1()'>
    </van-nav-bar> 
    <van-action-sheet v-model="show" title="分享到" height:30>
                <div class="share">
                    <share :config='config'></share>
                </div>
            </van-action-sheet>
    </div>
   
    <div class="main">
       <div @click='tab2()'>
           <img src="../assets/p10.gif" alt="">
           <img src="../assets/p11.gif" alt="">
           <img src="../assets/p12.gif" alt="">
           <img src="../assets/p13.gif" alt="">

       </div>
    </div>
</div>

</template>

<script>
export default {
    name:'Offlineact',
    methods:{
        tab(){
           this.$toast('按钮');
        },
        tab1(){
            this.$router.go(-1)
        }
        ,
        tab2(){
            this.$router.push('/detailbenefit')
        },
         share(){
            this.show=true
        }
    },
    data(){
        return{
             show:false,
            config:{
                url: 'http://www.baidu.com', // 网址，默认使用 window.location.href
		source:'', // 来源（QQ空间会用到）, 默认读取head标签：<meta name="site" content="http://overtrue" />
		title: 'hello', // 标题，默认读取 document.title 或者 <meta name="title" content="share.js" />
		description: 'hi', // 描述, 默认读取head标签<meta name="description" content="PHP弱类型的实现原理分析" />
		image : '', // 图片, 默认取网页中第一个img标签
		sites: ['qq', 'weibo','qzone' ,], // 启用的站点
		wechatQrcodeTitle: '微信扫一扫：分享', // 微信二维码提示文字
		wechatQrcodeHelper  : '<p>微信里点“发现”，扫一下</p><p>二维码便可将本文分享至朋友圈。</p>'

            }
        }
    }

}
</script>

<style scoped>
.social-share{
    display: flex;
    justify-content: space-between;
    padding: 0 38px
}
.share{
    height: 100px;
}
.van-nav-bar__text{
    color: #000
}
.van-nav-bar .van-icon{
    color: #000;
    margin-top: 3px
}
.van-nav-bar__title{
    font-size: 15px
}
.con{
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.main{
    flex: 1;
    overflow: auto
}
.main img{
    width: 100%
}
.main img:nth-of-type(2){
    margin-top: -5px
}
.main img:nth-of-type(3){
    margin-top: -5px
}

</style>